<template>
	<view>
		<view class="u-flex user-box u-p-t-30 u-p-l-30 u-p-r-20 u-p-b-30">
			<view class="u-m-r-10"><u-avatar :src="vuex_user.avatar_url" size="140"></u-avatar></view>
			<view class="u-flex-1">
				<view class="u-font-18 u-p-b-20 u-m-l-20">{{ vuex_user.name }}</view>
				<view class="u-font-14 u-tips-color u-m-l-20">邮箱:{{ vuex_user.email }}</view>
			</view>
			<!-- <view class="u-m-l-10 u-p-10">
				<u-icon name="scan" color="#969799" size="28"></u-icon>
			</view> -->
			<!-- 	<view class="u-m-l-10 u-p-10">
				<u-icon name="arrow-right" color="#969799" size="28"></u-icon>
			</view> -->
		</view>

		<view class="u-m-t-20">
			<u-cell-group><u-cell-item icon="man-add" title="个人信息" @click="toBaseInfo"></u-cell-item></u-cell-group>
		</view>
		<view class="u-m-t-20">
			<u-cell-group>
				<u-cell-item icon="order" title="所有订单"></u-cell-item>
				<u-cell-item icon="star" title="商品收藏"></u-cell-item>
				<u-cell-item icon="map" title="收货地址"></u-cell-item>
				<!-- 				<u-cell-item icon="photo" title="相册"></u-cell-item>
				<u-cell-item icon="coupon" title="卡券"></u-cell-item> -->
				<!-- <u-cell-item icon="heart" title="关注"></u-cell-item> -->
			</u-cell-group>
		</view>

		<view class="u-m-t-20">
			<u-cell-group><u-cell-item icon="setting" title="系统设置"></u-cell-item></u-cell-group>
		</view>

		<view class="u-m-t-20">
			<u-cell-group><u-cell-item icon="close-circle" title="退出登录"></u-cell-item></u-cell-group>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			pic: 'https://uviewui.com/common/logo.png',
			show: true
		};
	},
	onLoad() {
		//是否登录
		if (!this.$u.utils.isLogin()) return false;
	},
	methods: {
		toBaseInfo() {
			console.log(123);
			this.$u.route({
				url: '/pages/center/baseInfo'
			});
		}
	}
};
</script>

<style lang="scss" scoped>
page {
	background-color: #ededed;
}

.camera {
	width: 54px;
	height: 44px;

	&:active {
		background-color: #ededed;
	}
}
.user-box {
	background-color: #fff;
}
</style>
